<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位</title>
    <style>
        .father {
            width: 80vw;
            height: 50vw;
            border: 1px solid #000;
            /* margin: 0 auto; */
            position: relative;

        }

        .one {
            width: 20vw;
            height: 10vw;
            background-color: orange;
            /* position: absolute; */
            position: absolute;
            left: 3vw;
            top: 3vw;
        }

        .two {
            width: 20vw;
            height: 10vw;
            background-color: green;
            position: absolute;
            right: 10vw;
            bottom: 10vw;
        }
    </style>
</head>

<body>
    <div class="father">
        <div class="one">one</div>
        <div class="two">two</div>
    </div>
</body>

</html>